<?php

$neiW=[
	'172.16.3.219'=>'web10',
	'172.16.3.218'=>'web9',
	'172.16.3.217'=>'web8',
	'172.16.3.216'=>'web7',
	'172.16.3.215'=>'web6',
	'172.16.3.214'=>'web5',
	'172.16.3.213'=>'web4',
    '172.16.3.212'=>'web3',
    '172.16.3.209'=>'web2',
    '172.16.3.207'=>'web1'
];

$list=[
	'web10'=>'121.41.214.3',
	'web9'=>'121.41.220.150',
	'web8'=>'121.41.219.34',
	'web7'=>'47.118.71.241',
	'web6'=>'47.118.74.238',
	'web5'=>'121.41.211.42',
	'web4'=>'47.118.80.126',
    'web3'=>'47.118.86.48',
    'web2'=>'121.41.219.36',
    'web1'=>'121.41.202.163'
];

echo $neiW[$_SERVER['SERVER_ADDR']];
echo "<br /><br />";

if(!empty($_SERVER['SERVER_ADDR'])) {
    echo $_SERVER['SERVER_ADDR'];
}
echo "<br />";

echo gethostbyname($_SERVER['HOSTNAME']);
echo "<br /><br />";
foreach ($list as $k=>$v){
    echo " &nbsp; ",'<a href="http://'.$v.'/i.php">',$k," &nbsp; ",$v,'</a>';
    echo "<br /><br />";
}

echo "<br /><br />";

include './c/config.php';
$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqli->error);}
$query=$mysqli->query("SELECT * from `uf`  limit 0,1 ");
$getD=$query->fetch_array();
var_dump($getD);


echo "<br /><br />";
echo "<br /><br />";
foreach ($list as $k=>$v){
    echo " &nbsp; ",'<a href="http://'.$v.'/test-test.php">',$k," &nbsp; ",$v,'---test</a>';
    echo "<br /><br />";
}

exit;
?>
web1,web2
TRUNCATE uf;
TRUNCATE pan;
TRUNCATE danxuan;
TRUNCATE duoxuan;



 